package com.crl.ssc.dic.dto;

import com.cars.util.validation.UpdateValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @description: 省份字典DTO
 * @author: 孔垂云
 * @version: 1.0
 * @date: 2020/7/21 13:18
 */
@Data
@ApiModel("省份字典")
public class DicProvinceDTO {
    @ApiModelProperty("省份代码")
    @NotEmpty(groups = {UpdateValidGroup.class}, message = "省份代码不能为空")
    @Length(max = 20)
    private String provinceCode;//省份代码

    @ApiModelProperty("省份名称")
    @NotEmpty
    private String provinceName;//省份名称
}
